import request from '/@/utils/request';

export function homeworkApi() {
	return {
		//新增和修改
		save:(data?:object)=>{
			return request({
				url:'/homework/addHomework',
				method:'post',
				data,
			})
		},
		//分页查询
		//删除
		deleteHomework:(data?:object)=>{
			return request({
				url:'/homework/deleteHomework',
				method:'post',
				data,
			})
		},
	}
}